<?php

class Tab_Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

	protected $_name = 'tab';

	function _initAcl()
	{
		$registry = Zend_Registry::getInstance();
		$acl = $registry->get('acl');

		$acl->addResource('tab:index');
		$acl->allow(Core_Role::ROLE_GUEST, 'tab:index', array(
			'index',
		));
		$acl->allow(Core_Role::ROLE_USER, 'tab:index', array(
			'index',
		));
		$registry->set('acl', $acl);
	}
	
	protected function _initHelperPath()
	{
		Zend_Controller_Action_HelperBroker::addPath(
				APPLICATION_PATH . '/modules/Tab/controllers/helpers');
	}
}

